package test0ne.多线程;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public final class ResubmitLock {

    private static final ConcurrentHashMap LOCK_CACHE = new ConcurrentHashMap<>(20);

    private static final ScheduledThreadPoolExecutor EXECUTOR =
            new ScheduledThreadPoolExecutor(5, new ThreadPoolExecutor.DiscardPolicy());

    public void unLock(final boolean lock, final String key, final int delaySeconds) {
        if(lock) {
        }
    }
}
